package com.sxhuayuan.parking.controller.member;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.sxhuayuan.parking.service.OrderService;
import com.sxhuayuan.parking.service.ParkChannelService;
import com.sxhuayuan.parking.service.ParkingLotService;

/** 第三方车场 */
@RestController
@RequestMapping("/member/parkinginfo")
public class OriginalParkingInfoController {

	@Autowired
	ParkingLotService lotService;
	@Autowired
	ParkChannelService exitService;
	@Autowired
	OrderService orderService;

	/** 车安验证请求参数 暂时保留 不需要 */
	/**
	 * @RequestMapping("/check/trade_no") public Map<String, Object>
	 * checkTradeNo(String thirdPayId){
	 * 
	 * System.out.println("验证问题----------------------------------------------");
	 * 
	 * Map<String, Object> map = new HashMap<>(); if(thirdPayId == null ||
	 * thirdPayId == ""){ map.put("status", "fail"); map.put("errorCode", 100001);
	 * map.put("time", DateUtils.getNowDateStr()); return map; }
	 * 
	 * Order order = orderService.findByTradeNo(thirdPayId);
	 * if(Objects.isNull(order)){ map.put("status", "fail"); map.put("errorCode",
	 * 100003); map.put("time", DateUtils.getNowDateStr()); return map; }
	 **/

	/** 判断订单是否已经支付了 */
	/**
	 * if(order.getPayJudge().getId().longValue() ==
	 * setting.getPaySuccess().longValue()){ map.put("status", "success");
	 * map.put("errorCode", "null"); map.put("time", DateUtils.getNowDateStr());
	 * return map; }
	 * 
	 * map.put("status", "fail"); map.put("errorCode", 510); map.put("time",
	 * DateUtils.getNowDateStr()); return map; }
	 */
}
